package com.example.teesystem.service;

import com.example.teesystem.common.utils.Response;
import com.example.teesystem.entity.ClassStudent;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.teesystem.entity.vo.classStudent.ClassStudentResponseVo;
import com.example.teesystem.entity.vo.classStudent.ClassStudentUpdateVo;
import com.example.teesystem.entity.vo.classStudent.ClassStudentUploadVo;

import java.util.List;

/**
* @author 28131
* @description 针对表【t_class_student】的数据库操作Service
* @createDate 2022-03-30 13:50:39
*/
public interface ClassStudentService extends IService<ClassStudent> {
    
    Response add(ClassStudentUploadVo classStudentUploadVo);
    
    boolean remove(ClassStudentUploadVo classStudentUploadVo);
    
    boolean update(ClassStudentUpdateVo classStudentUpdateVo);
    
    List<ClassStudentResponseVo> get(Integer classId);
    
    List<ClassStudent> getMyClass();
    
    boolean applyJoin(Integer classId);

    Response getStudentMessage(Integer classId, Integer studentId);

    Response updateStudentAccountType(Integer classId, Integer studentId, Integer accountType);

    Response updateStudentPassword(Integer classId, Integer studentId, String password);
    
}
